package com.zhijian.medical.service;

import com.zhijian.medical.entity.vo.request.AssessmentSearchVo;
import com.zhijian.medical.entity.vo.request.AssessmentStartVo;
import com.zhijian.medical.entity.vo.request.AssessmentSubmitVo;
import com.zhijian.medical.entity.vo.response.AssessmentDoingVo;
import com.zhijian.medical.entity.vo.response.AssessmentDoneVo;
import com.zhijian.medical.entity.vo.response.ExamResultVo;
import com.zhijian.medical.entity.vo.response.MyAssessmentVo;
import com.zhijian.medical.util.Page;

/**
 * @author HCG
 * @version 1.0
 * @date 2023-02-16
 */
public interface MyAssessmentService {

    /**
     * 分页查询我的考核
     *
     * @param assessmentSearchVo
     * @return
     */
    Page<MyAssessmentVo> selectMyPage(AssessmentSearchVo assessmentSearchVo);

    /**
     * 开始考试
     *
     * @param assessmentStartVo
     * @return
     */
    AssessmentDoingVo start(AssessmentStartVo assessmentStartVo);

    /**
     * 提交试卷
     *
     * @param assessmentSubmitVo
     * @return
     */
    ExamResultVo submit(AssessmentSubmitVo assessmentSubmitVo);

    /**
     * 做完后的详情
     *
     * @param assessmentId
     * @param personId
     * @return
     */
    AssessmentDoneVo doneDetail(Long assessmentId, Long personId);

    /**
     * 修正分数
     *
     * @param assessmentId
     * @return
     */
    boolean fix(Long assessmentId);

}
